package com.deloitte.sapnetweaver.controller
{
	import com.adobe.cairngorm.control.FrontController;
	import com.deloitte.sapnetweaver.command.AllMasterCommand;
	import com.deloitte.sapnetweaver.command.DeleteDocumentDetailsCommand;
	import com.deloitte.sapnetweaver.command.DocumentSearchCommand;
	import com.deloitte.sapnetweaver.command.FileDownloadCommand;
	import com.deloitte.sapnetweaver.command.RetrieveDocumentDetailsCommand;
	import com.deloitte.sapnetweaver.command.RetrievePointOfViewDocumentsCommand;
	import com.deloitte.sapnetweaver.command.RetrieveProjectScopeDocumentsCommand;
	import com.deloitte.sapnetweaver.command.SaveOrUpdateDocumentDetailsCommand;
	import com.deloitte.sapnetweaver.events.AllMasterEvent;
	import com.deloitte.sapnetweaver.events.DocumentDetailsEvent;
	import com.deloitte.sapnetweaver.events.DocumentSearchEvent;
	import com.deloitte.sapnetweaver.events.FileDownLoadEvent;

	public class Controller extends FrontController
	{
		public function Controller()
		{
			//TODO: implement function
			addCommand(DocumentDetailsEvent.DELETE_DOCUMENT_DETAILS_EVENT, DeleteDocumentDetailsCommand);
			addCommand(DocumentDetailsEvent.SAVEORUPDATE_DOCUMENT_DETAILS_EVENT, SaveOrUpdateDocumentDetailsCommand);
			addCommand(DocumentDetailsEvent.RETRIEVE_DOCUMENT_DETAILS_EVENT, RetrieveDocumentDetailsCommand);
			addCommand(DocumentDetailsEvent.RETRIEVE_PROJECT_SCOPE_DOCUMENTS_EVENT, RetrieveProjectScopeDocumentsCommand);
			addCommand(DocumentDetailsEvent.RETRIEVE_POV_DOCUMENTS_EVENT, RetrievePointOfViewDocumentsCommand);
			addCommand(DocumentSearchEvent.DOCUMENT_SEARCH_EVENT, DocumentSearchCommand);
			addCommand(AllMasterEvent.EVENT_TYPE,AllMasterCommand);
			addCommand(FileDownLoadEvent.EVENT_FILE_DOWNLOAD_EVENT,FileDownloadCommand);
		}
		
	}
}